
const lis = [1,2,3,4]


lis.forEach(async (i)=>{

    console.log(i,'---');
    
    //  const res =  one(i).then((k)=>{
    //     two(k)
    //  })
    
    

    const res=  await one()

    two(i)
   // 定义

})




function one(i){
    
    return new Promise((reslove,reject)=>{
        setTimeout(()=>{
                reslove(i)
            
            },5000)
        }
    )
}


function two(i){
    


    console.log(i);
   

}







